package BuyBot;

import java.io.Serializable;

class Product implements Serializable{
	private static final long serialVersionUID = 3971546393135272210L;
	
	private String type;
	private String id;
	private float price;

	public Product(String type, String id, float price) {
		this.type = type;
		this.id = id;
		this.price = price;
	}

	public String getType() {
		return type;
	}

	public String getId() {
		return this.id;
	}

	public float getPrice() {
		return this.price;
	}

	public boolean equals(Object o) {
		if (o instanceof Product) {
			Product p = (Product) o;
			return type.equals(p.type) && id.equals(p.id);
		} else
			return false;
	}
}